/**
 * 
 */
package com.ubo.java.associations;

/**
 * @author saludegu
 * 
 */
public enum EAssociationCard {
	ZERO, UN, N;

	/**
	 * 
	 * @see java.lang.Enum#toString()
	 */
	public String toString() {
		if (name().equals("UN"))
			return "1";
		else if (name().equals("N"))
			return "*";
		else if (name().equals("ZERO"))
			return "0";
		return "";
	}
	
	public static EAssociationCard wrapp(String s) {
		if (ZERO.toString().equalsIgnoreCase(s))
			return ZERO;
		else if (UN.toString().equalsIgnoreCase(s))
			return UN;
		else 
			return N;
	}

}
